﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using ParallelMath.Library;

using Console1 = System.Console;

namespace ParallelMath.Console
{
    class Program
    {
        static void Main(string[] args)
        {
            
            double[] values = MatrixOperations1D.GenerateRandom1DArray(50000000,1,100);  

            Stopwatch stopwatch = Stopwatch.StartNew();
            double[] add = values.DoubleByANumber(20);
            stopwatch.Stop();
            Console1.WriteLine(stopwatch.Elapsed);

            stopwatch = Stopwatch.StartNew();
            double[] add1 = values.DoubleByANumber(20, true);
            stopwatch.Stop();
            Console1.WriteLine(stopwatch.Elapsed);
            
            Console1.ReadKey();
        }
    }
}
